<template>
  <div class="box">
    {{ msg }}
    <h3>{{ obj.name }}</h3>
    <h3>{{ obj.info.toUpperCase() }}</h3>

    <h4>{{ age > 18 ? 'laoliu' : 'laoqi' }}</h4>
  </div>
</template>

<script>
export default {
  data() {
    return {
      age: 18,
      msg: '我是小唐',
      obj: {
        name: 'John',
        info: 'hollow world',
      },
    }
  },
}
</script>

<style lang="less">
.box {
  .box1 {
    color: red;
  }
  .box2 {
    color: green;
  }
}
</style>
